From: Debian Science Maintainers Date: Wed, 16 Sep 2026 19:30:23 +0000 (+0100) Subject: ignore expected DeprecationWarning X-Git-Tag: archive/raspbian/2.3.3+dfsg-5+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eba93292942a96f654afaad534566ff3fe3b98cf;p=pandas.git ignore expected DeprecationWarning Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name ignore_bitwiseinversion_deprecation.patch --- diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 859cbd30..e9f7016b 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -564,7 +564,7 @@ class TestEval: def test_scalar_unary(self, engine, parser): msg = "bad operand type for unary ~: 'float'" warn = None - if PY312 and not (engine == "numexpr" and parser == "pandas"): + if PY312: warn = DeprecationWarning with pytest.raises(TypeError, match=msg): pd.eval("~1.0", engine=engine, parser=parser)